﻿using System.ComponentModel.DataAnnotations;
using Sharp.Platform.Mvc.Attribute;
using Sharp.Platform.Mvc.Models;

namespace Sharp.WebBooter.Areas.CMS.Models
{
    public class FieldViewModel : BaseViewModel
    {
        public System.Guid Id { get; set; }
        /// <summary>
        /// 名称
        /// </summary>
        /// <value>标题</value>
        [Display(Name = "名称")]
        public string Name { get; set; }
        /// <summary>
        /// 上级
        /// </summary>
        [Display(Name = "上级"), DisplayValueField("Name", "Id")]
        public System.Guid? ParentId { get; set; }

        public zTreeNode TreeNode { get; set; }
        public string ParentText { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        /// <value>备注</value>
        [Display(Name = "备注")]
        public string Remark { get; set; }
    }
}